//导入接口
import { GetOrdersStatic } from "@/api/order";
export default {
  state: {
    ordersStatic: [], //订单统计信息
  },
  mutations: {
    setOrdersStatic(state, data) {
      state.ordersStatic = data;
    },
  },
  actions: {
    getOrdersStatic(context) {
      GetOrdersStatic().then((res) => {
        if (res.data && res.data.code === 0) {
          context.commit("setOrdersStatic", res.data.list);
        }
      });
    },
  },
};
